package app.imttf.offline.backing.utils;

import javax.faces.context.FacesContext;

import oracle.adf.view.rich.event.DialogEvent;

public class KonfirmasiBackingBean {
    public KonfirmasiBackingBean() {
    }

    public void submitTtfPkp(DialogEvent dialogEvent) {
        if (dialogEvent.getOutcome().name().equals("ok")) {
            FacesContext context = FacesContext.getCurrentInstance();
            context.getApplication().getNavigationHandler().handleNavigation(context,
                                                                             null,
                                                                             "submitTtf");
        }
    }
    
    public void submitTtfNonPkp(DialogEvent dialogEvent) {
        if (dialogEvent.getOutcome().name().equals("ok")) {
            FacesContext context = FacesContext.getCurrentInstance();
            context.getApplication().getNavigationHandler().handleNavigation(context,
                                                                             null,
                                                                             "submitTtf");
        }
    }
}
